//webpack.dev.js
const common = require('./webpack.common')
const path = require('path')
const { merge } = require('webpack-merge')
const webpack = require('webpack')

module.exports = merge(common, {
    mode: 'development',
    devtool: 'cheap-eval-module-source-map',
    devServer: {
        contentBase: path.join(__dirname, 'dist'),
        hot: true,
        open: true,
        port: 5522
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ]
})